Hello, I am getting an null error when I passed attType to a function as an arguement. what I am doing wrong? [code]
int fnGetAttributeValue(AttrType atValue, string strValue)
for(i = 0; i < atValue.size; i++)
for o in current Module do [code] Thanks Jester jester76 - Tue Aug 06 17:43:36 EDT 2013 |
Re: Attribute Type to function Hi, Probably a stupid question but did you check that the call to "find" returns something?? Alain |
Re: Attribute Type to function adevicq - Wed Aug 07 03:52:54 EDT 2013 Hi, Probably a stupid question but did you check that the call to "find" returns something?? Alain It does. you can see that print finction prints (atSeverity.strings[1]) value for this. |
Re: Attribute Type to function jester76 - Wed Aug 07 11:16:31 EDT 2013 It does. you can see that print finction prints (atSeverity.strings[1]) value for this. Well, I tried this:
AttrType at = find (current Module, "Status")
print at.strings[2] "\n"
void f(AttrType x) {
print x.strings[1]
}
f(at)
and it works. Try passing the parameter by address? |
Re: Attribute Type to function It would help if you copied the exact DXL error and any print output to date. Guessing, try using parens:
-Louie |